#ifndef _TC_MATH
#define _TC_MATH

#define _USE_MATH_DEFINES

#include <tcCommon/tc_common.h>
#include <math.h>

#ifdef __cplusplus
extern "C" 
{
#endif

typedef struct 
{
	float x;
	float y;
} tc_vector2;

tcExport float tc_vector2_dot(tc_vector2 a, tc_vector2 b);
tcExport float tc_vector2_dist(tc_vector2 a, tc_vector2 b);
tcExport float tc_vector2_length(tc_vector2 vec);
tcExport void tc_vector2_normalize(tc_vector2 *vec);
tcExport void tc_vector2_minus(tc_vector2 a, tc_vector2 b, tc_vector2 *result);
tcExport void tc_clampf(float *f, float min, float max);

#ifdef __cplusplus
}
#endif

#endif